package research.domain;

import java.util.Set;
import java.util.Date;

import research.entity.Entity;
import research.entity.EntityType;

public final class Application extends Entity {
	private String task;
    private String documents;
    private String desired_results;
    private Date desired_date;
    private String description;
    private String company_name;
    private String declarant_name;
    private Date date;
    private String registration_number;
    private String specialist_name;
    private Set<Research> researches;
    private Calander calander;
    private FilmType filmType;
	
    public FilmType getFilmType() {
		return filmType;
	}

	public void setFilmType(FilmType filmType) {
		this.filmType = filmType;
	}

	public Application() {
		super(EntityType.Application);
	}
    
	public String getTask() {
		return task;
	}

	public void setTask(String task) {
		this.task = task;
	}

	public String getDocuments() {
		return documents;
	}

	public void setDocuments(String documents) {
		this.documents = documents;
	}

	public String getDesired_results() {
		return desired_results;
	}

	public void setDesired_results(String desired_results) {
		this.desired_results = desired_results;
	}

	public Date getDesired_date() {
		return desired_date;
	}

	public void setDesired_date(Date desired_date) {
		this.desired_date = desired_date;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getCompany_name() {
		return company_name;
	}

	public void setCompany_name(String company_name) {
		this.company_name = company_name;
	}

	public String getDeclarant_name() {
		return declarant_name;
	}

	public void setDeclarant_name(String declarant_name) {
		this.declarant_name = declarant_name;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public String getRegistration_number() {
		return registration_number;
	}

	public void setRegistration_number(String registration_number) {
		this.registration_number = registration_number;
	}

	public String getSpecialist_name() {
		return specialist_name;
	}

	public void setSpecialist_name(String specialist_name) {
		this.specialist_name = specialist_name;
	}

	public Set<Research> getResearches() {
		return researches;
	}

	public void setResearches(Set<Research> researches) {
		this.researches = researches;
	}

	public static Application getNew() {
		Application app = new Application();
		app.setDate(new Date());
		app.setDesired_date(new Date());
		app.setCompany_name("");
		app.setDeclarant_name("");
		app.setDescription("");
		app.setDesired_results("");
		app.setDocuments("");
		app.setRegistration_number("");
		app.setSpecialist_name("");
		app.setTask("");
		app.setCalander(null);
		return app;
	}

	public Calander getCalander() {
		return calander;
	}

	public void setCalander(Calander calander) {
		this.calander = calander;
	}
    
    
}
